package com.five.community.mapper;

import com.five.community.bean.Building;
import com.five.community.bean.vo.BuildingVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface BuildingMapper {
    List<BuildingVo> selectAll() throws Exception;

    void insert(Building building) throws Exception;

    void delete(long id) throws Exception;

    List<BuildingVo> selectByName(String name) throws Exception;

    Building selectById(long id) throws Exception;

    void update(Building building) throws Exception;
}
